import instance from './request.js'

// 产品分类的接口
export function orderList(params) {
    return instance({
        url: '/api/order/list',
        methods: 'get',
        params,
    })
}

// 订单汇总列表
export function changeStatus(data) {
    return instance({
        url: '/api/order/collect',
        methods: 'get',
        data,
    })
}

// 订单汇总
export function changeHz(params) {
    return instance({
        url: '/api/order/changeStatus',
        methods: 'get',
        params,
    })
}

//撤销汇总
export function cancel(params) {
    return instance({
        url: '/api/order/cancel',
        methods: 'get',
        params,
    })
}

// 订单详情接口

export function getDetail(params) {
    return instance({
        url: '/api/order/list/detail',
        methods: 'get',
        params,
    })
}
